import { httpRequest } from "@/http/axios/index"
interface IUser {
  username: string
  password: string
  nick_name?: string
  gender?: string
  mobile?: string
  email?: string
  head_image?: string[]
  remark?: string
}

async function createUser(params: IUser) {
  return httpRequest.request({
    url: "/api/sys/user/add",
    method: "POST",
    data: params
  })
}

async function getUserList() {
  return httpRequest.request({
    url: "/api/sys/user/list"
  })
}

export { createUser, getUserList }
